package day03;

public class OperDemo6 {
    public static void main(String[] args) {
        int num = 6;
        int flag = num>0 ? 1:-1;
          System.out.println(flag);

        int a = 45,b=74;
        int max = a>b ? a:b;
        System.out.println("max="+max);

        int i=665,j=726,k=123;
        int max1 = i>j ? (i>k ? i:k):(j>k ? j:k);//嵌套三目运算符
        System.out.println("max1="+max1);
    }
}
